//
//  ConstantTool.swift
//  QNN
//
//  Created by zhenyu on 17/3/30.
//  Copyright © 2017年 qianshengqian. All rights reserved.
//

import UIKit


let iPhone4 = UIScreen.main.bounds.height == 480
let iPhone5 = UIScreen.main.bounds.height == 568
let iPhonePlus = UIScreen.main.bounds.height == 736
let iPad = UIScreen.main.bounds.height > 736

let iPhone_4_5 = UIScreen.main.bounds.width == 320 ? true : false

let ScreenHeight = UIScreen.main.bounds.height
let ScreenWidth = UIScreen.main.bounds.width


// Documents 目录：您应该将所有的应用程序数据文件写入到这个目录下。这个目录用于存储用户数据或其它应该定期备份的信息。
let DocumentPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true)[0]


// 整型时间戳
var timeStampInt: Int {
  let date = NSDate().timeIntervalSince1970 * 1000
  let dataInt = Int(date)
  return dataInt
}


// window
let window = UIApplication.shared.delegate?.window!
